/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const distributionRouter = {
  path: '/distribution',
  component: Layout,
  redirect: 'noRedirect',
  name: '分销',
  hidden:true,
  meta: {
    title: '分销', icon: 'guide'
  },
  children: [
    {
      path: 'main',
      component: () => import('@/views/distribution/main'),
      name: '概览',
      hidden:true,
      meta: { title: '概览', icon: 'guide' }
    },
    {
      path: 'agent',
      component: () => import('@/views/distribution/agent/agent'),
      name: '代理',
      hidden:true,
      meta: { title: '代理', icon: 'guide' }
    },
    {
      path: 'customer',
      component: () => import('@/views/distribution/customer/customer'),
      name: '客户',
      hidden:true,
      meta: { title: '客户', icon: 'guide' }
    },
    {
      path: 'order',
      component: () => import('@/views/distribution/order/order'),
      name: '订单',
      hidden:true,
      meta: { title: '订单', icon: 'guide' }
    },
    {
      path: 'commission',
      component: () => import('@/views/distribution/commission/commission'),
      name: '佣金',
      hidden:true,
      meta: { title: '佣金', icon: 'guide' }
    },
    {
      path: 'product',
      component: () => import('@/views/distribution/product/product'),
      name: '产品',
      hidden:true,
      meta: { title: '产品', icon: 'guide' }
    }
  ]
}

export default distributionRouter
